package com.mall.service;

import com.github.pagehelper.PageInfo;
import com.mall.bean.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by xiaochao on 2017/7/23.
 */
public interface UserService {

    PageInfo<User> getUserList(int pageNo, int pageSize);

    List<User> find();

    User selectByUserNamePassword(String username, String password);

    User selectByName(String username);

    User selectByUserId(String id);

    int insertUser(User user);

    int insertUserByUser(User user);

    int deleteById(String id);

    int updateByUserId(User user);




}
